package level4.display.filters
{
	import flash.filters.BitmapFilter;
	import flash.filters.ColorMatrixFilter;
	import flash.filters.GlowFilter;

	public class Filters
	{
		public function Filters()
		{
		}
		/**
		 * 发光滤镜
		 * */
		public static function glowFilter(color:uint,alpha:int=1,blurX:int=4,blurY:int=4):GlowFilter{
			return new GlowFilter(color,alpha,blurX,blurY);
		}
		/**
		 * 灰度滤镜
		 * */
		public static function grayFilter():BitmapFilter{
			return new ColorMatrixFilter([
				0.3, 0.59, 0.11, 0, 0, 
				0.3, 0.59, 0.11, 0, 0, 
				0.3, 0.59, 0.11, 0, 0, 
				0, 0, 0, 1, 0
			]);
		}
		
	}
}